<template>
  <MrCustom bg-color="bg-gradual-blue " is-back>
    <template #backText>
      返回
    </template>
  </MrCustom>
  <view>
    <tui-tabs :tabs="tabs" itemWidth="50%" :currentTab="currentTab" @change="tabChange"></tui-tabs>
    <view v-if="currentTab===0">
      <AskQuestion></AskQuestion>
    </view>
    <view v-if="currentTab===1">
      <HistoryQuestion></HistoryQuestion>
    </view>
  </view>
</template>

<script setup lang="ts">
import {ref} from "vue";
import AskQuestion from "@/pages/patient/inquiry/components/AskQuestion.vue";
import HistoryQuestion from "@/pages/patient/inquiry/components/HistoryQuestion.vue";
import MrCustom from "@/components/common/MrCustom.vue";


const currentTab = ref(0)
const tabs = ref([{
  name: '快速提问',
}, {
  name: '问诊历史'
}])

const tabChange = (e: any) => {
  currentTab.value = e.index
}


</script>

<style>
</style>